import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { MarketSalesmanListComponent } from './list/list.component';
import { DistrictComponent } from './district/district.component';
import { SalesmanTypeComponent } from './salesman-type/salesman-type.component';
import { SalesmanDetailComponent } from './salesman-detail/salesman-detail.component';
import { RoleChangeRecordComponent } from './role-change-record/role-change-record.component';

const routes: Routes = [

  { path: 'list/:role', component: MarketSalesmanListComponent },
  { path: 'list/:role/detail', component: SalesmanDetailComponent },
  { path: 'district', component: DistrictComponent },
  { path: 'salesman-type/:type', component: SalesmanTypeComponent },
  { path: 'role-change-record', component: RoleChangeRecordComponent }];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class MarketSalesmanRoutingModule { }
